# 消息类型:必填:字符串
MSGTYPE = 'msgtype'
# 消息内容:必填:字符串
CONTENT = 'content'
# 被@人手机号:非必填:数组
ATMOBILES = 'atMobiles'
# 被@人的用户userid:非必填:数组
ATUSERIDS = 'atUserIds'
# 是否@所有人:非必填:布尔
ISATALL = 'isAtAll'
# @信息键
ATKEY = 'at'

# 消息标题:必填:字符串
TITLE = 'title'
# 消息内容,太长时展示部分:必填:字符串
TEXT = 'text'
# 点击消息跳转的url:必填:字符串
LINK_MESSAGE_URL = 'messageUrl'
# 图片url:非必填:字符串
LINK_PIC_URL = 'picUrl'

# 单个按钮标题:必填:字符串
AC_SINGLE_TITLE = 'singleTitle'
# 单个按钮链接:必填:字符串
AC_SINGLE_URL = 'singleURL'
# 按钮样式:非必填:字符串
AC_BTN_ORIENTATION = 'btnOrientation'
# 按钮列表:必填:数组
AC_BTNS = 'btns'
# 按钮标题:必填:字符串
AC_TITLE = 'title'
# 按钮跳转URL:必填:字符串
AC_ACTION_URL = 'actionURL'

# 链接列表:必填:数组
FC_LINKS = 'links'
# 单条链接信息文本:必填:字符串
FC_LINK_TITLE = 'title'
# 单条链接信息跳转链接:必填:字符串
FC_MESSAGE_URL = 'messageURL'
# 单条链接信息图片:必填:字符串
FC_PIC_URL = 'picURL'

# 消息信息键
MESSAGE_TEXT = 'text'
MESSAGE_LINK = 'link'
MESSAGE_MARKDOWN = 'markdown'
MESSAGE_ACTIONCARD = 'actionCard'
MESSAGE_FEEDCARD = 'feedCard'


# 判断变量类型的函数
def typeof(variate):
	var_type = None
	if isinstance(variate, int):
		var_type = "int"
	elif isinstance(variate, str):
		var_type = "str"
	elif isinstance(variate, float):
		var_type = "float"
	elif isinstance(variate, list):
		var_type = "list"
	elif isinstance(variate, tuple):
		var_type = "tuple"
	elif isinstance(variate, dict):
		var_type = "dict"
	elif isinstance(variate, set):
		var_type = "set"
	return var_type
